import request from '@/utils/request'

export function getQuYuAPI(params) {
  return request({
    url: 'parking/area/list',
    params
  })
}
export function getAddAPI(data) {
  return request({
    url: 'parking/area',
    method: 'POST',
    data
  })
}
export function writerAddAPI(data) {
  return request({
    url: 'parking/area',
    method: 'PUT',
    data
  })
}
export function delAreaAPI(id) {
  return request({
    url: `parking/area/${id}`,
    method: 'DELETE'
  })
}
